<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设备固件升级任务</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid layui-form" wid100>
  <input type="hidden" name="id" value="$!{id}"/>
  <div class="layui-card">
    <div class="layui-card-body">
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">设备序列号</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceSn}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">设备类型</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceType.name}（$!{deviceTypeId}）</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">设备功能</label>
            <div class="layui-form-mid layui-word-aux">$!{deviceFunName}($!{deviceFunCode})</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm8">
          <div class="layui-form-item">
            <label class="layui-form-label">升级包</label>
            <div class="layui-form-mid layui-word-aux">$!{packagePath}</div>
          </div>
        </div>
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">升级包CRC</label>
            <div class="layui-form-mid layui-word-aux">$!{packageCRC}</div>
          </div>
        </div>
      </div>
      <div class="layui-row">
        <div class="layui-col-sm4">
          <div class="layui-form-item">
            <label class="layui-form-label">升级版本号</label>
            <div class="layui-form-mid layui-word-aux">$!{versionNumber}</div>
          </div>
        </div>
        <div class="layui-col-sm3">
          <div class="layui-form-item">
            <label class="layui-form-label">任务状态</label>
            <div class="layui-form-mid layui-word-aux">$!{stateName}</div>
          </div>
        </div>
        #if($failNote)
        <div class="layui-col-sm5">
          <div class="layui-form-item">
            <label class="layui-form-label">升级错误描述</label>
            <div class="layui-form-mid layui-word-aux">$!{failNote}</div>
          </div>
        </div>
        #end
      </div>
    <div class="layui-row">
      #if($upgradeDate)
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">升级时间</label>
          <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($upgradeDate,'yyyy-MM-dd HH:mm')}</div>
        </div>
      </div>
      #end
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">最后修改</label>
          <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($updateDate,'yyyy-MM-dd HH:mm')}</div>
        </div>
      </div>
      <div class="layui-col-sm4">
        <div class="layui-form-item">
          <label class="layui-form-label">创建时间</label>
          <div class="layui-form-mid layui-word-aux">$!{utils.dateFormat($createDate,'yyyy-MM-dd HH:mm')}</div>
        </div>
      </div>
    </div>
    </div><!-- /.layui-card-body -->
  </div><!-- /.layui-card -->
  <div class="layui-card">
    <div class="layui-card-header">升级流程日志</div>
    <div class="layui-card-body">
      <table id="LAY-table" lay-filter="LAY-table"></table>
      <script type="text/html" id="LAY-table-toolbar">
        <a class="layui-btn layui-btn-xs" lay-event="deviceInfo">查看</a>
      </script>
    </div>
  </div>
</div>
#parse('/footFiles.html')
<script>
layui.config({
  base: '$!{webRoot}/layuiadmin/'
  ,webRoot:'$!{webRoot}'
  ,resDomain:'$!{resDomain}'
}).extend({
  index: 'lib/index'
  ,device_upgrade_task_info:'device/device_upgrade_task_info'
}).use(['index', 'form', 'device_upgrade_task_info'])
</script>
</body>
</html>